package cn.cdeden.aiqa.domain.bo;

import cn.cdeden.aiqa.domain.WikiSensitive;
import cn.cdeden.common.core.validate.AddGroup;
import cn.cdeden.common.core.validate.EditGroup;
import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 敏感词管理业务对象 wiki_sensitive
 *
 * @author Nick
 * @date 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WikiSensitive.class, reverseConvertGenerate = false)
public class WikiSensitiveBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 敏感词
     */
    @NotBlank(message = "敏感词不能为空", groups = { AddGroup.class, EditGroup.class })
    private String word;


}
